package com.outsourcing.bottle;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.outsourcing.bottle.util.BottlePushService;
/**
 * 
 * @author 06peng
 *
 */
public class BootBroadcastReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		String action = intent.getAction();
		if (action.equals(Intent.ACTION_BOOT_COMPLETED) || action.equals("android.intent.action.QUICKBOOT_POWERON")) {
			try {
				BottlePushService.actionStart(context);
			} catch (Exception e) {
				e.printStackTrace();
			}
		} 
	}
}
